import { make_tester } from "./ChangeTester";
import { IRawContact } from "./IRawContact";

/** 检查是否有变 */
export const is_raw_contact_item_changed = make_tester<IRawContact>({
  userName: (a, b) => a.userName != b.userName,
  alias: (a, b) => a.alias != b.alias,
  remark: (a, b) => a.remark != b.remark,
  nickName: (a, b) => a.nickName != b.nickName,
  isFriend: (a, b) => a.isFriend != b.isFriend,
  account: (a, b) => a.account != b.account,
  src: () => false,
  phone: (a, b) => a.phone != b.phone,
});
